import React, {PureComponent} from "react"
import OrderInfo from "../order-info"
import {withRouter} from "react-router"
import {rootPath} from "../../../../shared/init"

@withRouter
export default class OrderDetail extends PureComponent {

  onBack = () => {
    const {history} = this.props
    history.push(`/${rootPath}/my-order/history-order`)
  }

  render() {
    return <OrderInfo onBack={this.onBack}/>
  }
}